package com.itheima.mArray;

/*
     特殊算法
 */
public class ArrayWork04 {
    public static void main(String[] args) {
        //录入数组
        int[] arr = {2, 1, 3, 5, 4};
        int sum = arr[0];
        //遍历数组
        for (int i = 1; i < arr.length; i++) {
            sum = sum * 10 + arr[i];
        }
        System.out.println("表示的整数为:" + sum);
    }
}
